package cn.timeoverflow.util;

import com.google.gson.Gson;

import cn.timeoverflow.bean.DeviceEvent;
import cn.timeoverflow.util.json.DeviceEventadapter;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;

public class ExtendedWxGsonBuilder extends WxGsonBuilder {
	static{
		INSTANCE.registerTypeAdapter(DeviceEvent.class, new DeviceEventadapter());
	}
	
	public static Gson create() {
	    return INSTANCE.create();
	}
}
